//
//  ViolationModel.swift
//  TrafficViolation
//
//  Created by eaglelive on 2017/5/5.
//  Copyright © 2017年 eaglelive. All rights reserved.
//

import UIKit
import SwiftyJSON

class ViolationModel: NSObject {
    
    var lsnum : String
    var carorg : String
    var time : String
    var province : String
    var vioID : String
    var agency : String
    var usercarid : String
    var status : String
    var canhandle : String
    var score : String
    var lng : String
    var legalnum : String
    var lsprefix : String
    var city : String
    var town : String
    var handlefee : String
    var carNum : String
    var number : String
    var lat : String
    var illegalid : String
    var price : String
    var address : String
    var content : String
    var samount:String
    
    //初始化
    init(dic : JSON) {
        self.lsnum = dic["lsnum"].stringValue
        self.carorg = dic["carorg"].stringValue
        self.time = dic["time"].stringValue
        self.province = dic["province"].stringValue
        self.vioID = dic["vioID"].stringValue
        self.agency = dic["agency"].stringValue
        self.usercarid = dic["usercarid"].stringValue
        self.status = dic["status"].stringValue
        self.canhandle = dic["canhandle"].stringValue
        self.score = dic["score"].stringValue
        self.lng = dic["lng"].stringValue
        self.legalnum = dic["legalnum"].stringValue
        self.lsprefix = dic["lsprefix"].stringValue
        self.city = dic["city"].stringValue
        self.town = dic["town"].stringValue
        self.handlefee = dic["handlefee"].stringValue
        self.carNum = dic["carNum"].stringValue
        self.number = dic["number"].stringValue
        self.lat = dic["lat"].stringValue
        self.illegalid = dic["illegalid"].stringValue
        self.price = dic["price"].stringValue
        self.address = dic["address"].stringValue
        self.content = dic["content"].stringValue
        self.samount = dic["samount"].stringValue
    }
}
